package com.wzxy.nc.util;

import java.util.HashMap;
import java.util.Map;


public class JsonResultUtil {

	@SuppressWarnings({ "rawtypes", "unchecked" })
	private static Map<String,Object> json = new HashMap(0);
	
	public static Map<String,Object> success(){
		return success(0,"操作成功");
	}
	
	public static Map<String,Object> success(Integer code,String message){
		json.put("code", code);
		json.put("msg", message);
		return json; 
	}
	
	public static Map<String,Object> error(Integer code,String message){
		json.put("code", code);
		json.put("msg", message);
		return json; 
	}
	
}
